import java.util.*;

class Convert 
{
	public static void main(String[] args) 
	{

		 int choice ;
		Scanner sc = new Scanner(System.in) ;
			System.out.println( "========Temperature Converter========");
			System.out.println();
			System.out.println( "1. Convert from Celsius to Fahrenheit");
			System.out.println( "2. Convert from Fahrenheit to Celsius");
			System.out.println( "3. Exit");
			System.out.println();
			System.out.println( "=====================================");
			System.out.print("Select your choice: ");
							choice = sc.nextInt();

if (choice == 1)
{
	CelsiusToFahrenheit CF = new CelsiusToFahrenheit();
		System.out.println();
		System.out.print( "Please enter temperature in Celsius: ");
		CF.Celsius = sc.nextDouble();
			System.out.println( "====================================");
		CF.ConvertCelsiusToFahrenheit();
}else
if (choice == 2)
{
	FahrenheitToCelsius FC = new FahrenheitToCelsius();
		System.out.println();
		System.out.print( "Please enter temperature in Fahrenheit: ");
		FC.Fahrenheit = sc.nextDouble();
			System.out.println( "====================================");
		FC.ConvertFahrenheitToCelsius();
}

	System.out.println("=========== Program is Done ===========");
	}
}
